package com.ylp.lianxi.myChainOfResponsibility;

/**
 * 文件输出日志（只输出info, error日志）
 * 
 * @author Administrator
 *
 */
public class FileLogger extends AbstractLogger {

	@Override
	public void write(int level, String msg) {
		if (level <= 2) {
			System.out.println(level + ", 文件输出日志: " + msg);
		} else {
			nextLogger.write(level, msg);
		}
	}

}
